www.mxdraw.com
内容索引主面
前一个向上下一个
IMxDrawHatch::AppendLoop 方法

添加图案填充边界

IDL
[helpstring("method AppendLoop")]
HRESULT AppendLoop([in] LONG loopType, [in] IMxDrawResbuf* pData, [out,retval] VARIANT_BOOL* pOk);
参数 
说明 
[in] LONG loopType 
边界的类型 
[in] IMxDrawResbuf* pData 
边界数据 

例如: VB

    MxDrawHatch hatch = new MxDrawHatch();

     MxDrawResbuf param = new MxDrawResbuf();
     param.AddPoint(pt1);
     param.AddDouble(0);

  

     param.AddPoint(pt3);
     param.AddDouble(0);

     param.AddPoint(pt2);
     param.AddDouble(0);

     param.AddPoint(pt4);
     param.AddDouble(0);

     hatch.AppendLoop(2, param);

     pWorldDraw.DrawEntity((MxDrawEntity)hatch);
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!